<%-- 
    Document   : index
    Created on : Oct 11, 2011, 10:57:44 PM
    Author     : MrKoi
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <link rel="stylesheet" type="text/css" href="Style/style.css" />
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>        
    </head>
    <body>
        <%
String pageURL=request.getParameter("page");
if(pageURL==null){
    pageURL="homepage";
}
%>
	<div id="header">
            <jsp:include page="header.jsp"/>
	</div>
	<div id="wrapper">
            <jsp:include page="sidebar.jsp"/>
            <div id="content">
			<div class="search"><span>Search</span> <input type="text" /></div>
			<div class="bg">
                            <div class="column1">
                                <%
                                    if(pageURL.equals("homepage")){
                                %>                                    
                                <%}else if(pageURL.equals("aboutus")){%>
                                    <jsp:include page="Admin/addCar.jsp"/>
                                    <%}else if(pageURL.equals("Cars")){%>
                                    <jsp:include page="DisplayListCar.jsp"/>                                
                                <%}else{%>
                                    <jsp:include page="Admin/addHotel.jsp"/>
                                <%}%>
                                
                            </div>
                            <div class="column2">
                                <jsp:include page="column2.jsp"/>
                            </div>               
                            
				
			</div>
		</div>
	</div>
	<div id="footer">
            <jsp:include page="footer.jsp"/>
	</div>
</body>
</html>
